package com.youxin.cpcenter.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.youxin.busfoundation.enums.EnterprisePassStatus;

public class TbEntMemberInfo {
    /** ID */
    private Long id;

    /** 企业认证id */
    private Long entIdentifyId;

    /** 会员ID */
    private Long memberId;

    /** 会员UID */
    private String memberUid;

    /** 真实姓名 */
    private String realName;
    
    /** 手机号码 */
    private String mobile;
    
    /** 邮箱 */
    private String email;
    
    /** 会员名 */
    private String memberName;

    /** 企业UID */
    private String companyUid;

    /** 企业UID */
    private String companyName;

    /** 是否企业管理员： 0-企业普通成员 1-企业管理员 */
    private Short enterpriseManager;

    /** 企业员工通过企业版：0-未通过 1-已通过 */
    private Short enterprisePass;

    /** 企业版认证类型：0-普通 1-VIP 2-试用 */
    private Short enterpriseIdentyType;

    /** 企业版-成员认证状态： 0-未认证 1-已认证 2-已解除 */
    private Short enterpriseIdentyStatus;

    /** 添加时间 */
    private Long addTime;

    /** 更新时间 */
    private Long updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getEntIdentifyId() {
        return entIdentifyId;
    }

    public void setEntIdentifyId(Long entIdentifyId) {
        this.entIdentifyId = entIdentifyId;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberUid() {
        return memberUid;
    }

    public void setMemberUid(String memberUid) {
        this.memberUid = memberUid == null ? null : memberUid.trim();
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName == null ? null : memberName.trim();
    }

    public String getCompanyUid() {
        return companyUid;
    }

    public void setCompanyUid(String companyUid) {
        this.companyUid = companyUid == null ? null : companyUid.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public Short getEnterpriseManager() {
        return enterpriseManager;
    }

    public void setEnterpriseManager(Short enterpriseManager) {
        this.enterpriseManager = enterpriseManager;
    }

    public Short getEnterprisePass() {
        return enterprisePass;
    }

    public void setEnterprisePass(Short enterprisePass) {
        this.enterprisePass = enterprisePass;
    }

    public Short getEnterpriseIdentyType() {
        return enterpriseIdentyType;
    }

    public void setEnterpriseIdentyType(Short enterpriseIdentyType) {
        this.enterpriseIdentyType = enterpriseIdentyType;
    }

    public Short getEnterpriseIdentyStatus() {
        return enterpriseIdentyStatus;
    }

    public void setEnterpriseIdentyStatus(Short enterpriseIdentyStatus) {
        this.enterpriseIdentyStatus = enterpriseIdentyStatus;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@JsonIgnore
	public boolean isPassed()
	{		
		return enterprisePass.shortValue()==EnterprisePassStatus.Pass.getValue();
	}
    
}